|
|
![]() | |
|
|
|
To access the contents, click the chapter and section titles.
Sams Teach Yourself MCSE Windows NT Server 4 in 14 Days
11.2. Dynamic Host Configuration ProtocolIn a network based on the TCP/IP protocol, every node on the network must be assigned a unique IP address. In a large networked environment, assigning and managing these addresses manually can become quite a time-consuming project. You run into problems such as the following:
The Dynamic Host Configuration Protocol (DHCP) is a method of lessening this administrative burden. A DHCP server is used to dynamically assign IP addresses while offering centralized management of IP addresses on a TCP/IP-based network. DHCP also offers the capability to assign other parameters along with the IP assignment, such as the location of WINS servers, DNS servers, default gateways, and node type.
Before a client on an IP network can communicate, the host must initialize TCP/IP, which requires a unique IP address and a subnet mask as a minimum. These can be entered manually on each host machine or assigned dynamically by a DHCP server. Although the acquisition of an IP address from a DHCP server results in increased network traffic, the amount of traffic generated is not significant. The two types of DHCP traffic are address acquisition and address renewal. 11.2.1. DHCP Address AcquisitionUpon booting, the host machine broadcasts a request for an IP address. Because TCP/IP has not initialized, packets requesting this IP address must be broadcast. However, each of these four frames are 342 bytes in size, for a total size of about 1,368 bytes, and take about 1/3 of a second to transmit. Figure 11.1 shows these four packets using Network Monitor.
These four packets are
11.2.2. Configuring the DHCP ClientAll Microsoft clients, with the exception of LAN Manager for OS/2, can be configured to use DHCP. Setting up a client to use DHCP is simply a matter of setting its TCP/IP properties to use a DHCP server. The rest is automatic. Go to Control Panel/Network/Protocols. Select the TCP/IP component and choose Properties, which will bring up the property sheet shown in Figure 11.2.
Simply choose the radio button Obtain an IP Address Automatically and the client computer is configured. Restart the computer when Windows asks you to. You can confirm the new IP lease at the client by typing ipconfig /all at a command prompt (see Figure 11.3).
11.2.3. DHCP Address RenewalThe client attempts to renew its IP address lease every time it reboots. In addition, if the client is left up long enough, it will attempt to renew after 50 percent, 87.5 percent, and 100 percent of its lease period has elapsed. Because TCP/IP is already initialized and the client and server know about each other, this renewal is sent via directed packets and consists of only two packets:
These packets are the same size as those used for acquisition (342 bytes each), for a total of 684 bytes, and take 200 milliseconds to complete. Figure 11.4 shows these packets using Network Monitor.
11.2.4. Configuring the DHCP ServerConfiguring the DHCP server requires a little more effort, including the following:
|
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |